package com.goldcn.sys.dao;

import com.goldcn.sys.model.SysPayment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPaymentMapper {
    int deleteByPrimaryKey(Long paymentID);

    int insert(SysPayment record);

    int insertSelective(SysPayment record);

    SysPayment selectByPrimaryKey(Long paymentID);

    int updateByPrimaryKeySelective(SysPayment record);

    int updateByPrimaryKey(SysPayment record);

    List<SysPayment> selectAllDefault(@Param(value = "companyID") Long companyID, @Param(value = "ids") List<String> ids);

    List<String> selectAllCodeByCompanyID(Long companyID);

    int insertBatch(List<SysPayment> record);

    SysPayment selectByPayCodeCompanyId(@Param(value = "companyID") Long companyID, @Param(value = "payCode") String payCode);


}